
#include "PieceGoods.h"
#include <cstdio>

PieceGoods::PieceGoods(std::string name, double price_per)
    : Commodity(std::move(name), price_per)
{

}

double PieceGoods::CheckOut()
{
  printf("%-20s|%-10.2f|%-10.2f|%-10.2f\n", name_.c_str(), 1.0f, price_per_, price_per_);
  return price_per_;
}
